package br.edu.ufcg.msnlab.methods.exactrootalgorithm;

import java.util.List;

import br.edu.ufcg.msnlab.misc.Function;

public class ExactRootAlgorithmSolverImpl implements ExactRootAlgorithmSolver {

	private double [][] c;
	private double [] a, x, termos, result;
	private int m, n, m0;

	@Override
	public List<ExactRootAlgorithmResult> solve(Function function,
			double tolerance) {
		System.out.println(function.getExpression());
		
		
		return solve(function, 2, 0, 100);
	}

	@Override
	public List<ExactRootAlgorithmResult> solve(Function function,
			double degree, double tolerance) {
		System.out.println(function.getExpression());
		
		return solve(function, degree, tolerance, 100);
	}

	@Override
	public List<ExactRootAlgorithmResult> solve(Function function,
			double degree, double tolerance, int iterations) {
		System.out.println(function.getExpression());
		
		m0 = iterations + 2;
		
		c = new double [m0][m0];
		a = new double [m0];
		x = new double [m0];
		termos = new double [m0];
		result = new double [m0];
		
		if (m0==2) {
			
		}

		return null;
	}

}
